package com.changli07._interface.jdk8;

public class SubClass implements CompareA,CompareB {
    public void compare(){
        System.out.println("SubClass:睡好觉");
    }
    @Override
    public void method1(){
        System.out.println("我是subclass，我要吃饭");
    }
    public void method2(){
        System.out.println("Subclass的method2");
    }
}
